Top 100+ latest, tricky and scenario based Salesforce Interview Questions and Answers for 2024.
1. Salesforce Admin Interview Questions and Answers
Q 1.1 What is Salesforce?
Salesforce, Inc. is an American cloud-based software company headquartered in San Francisco, California. It provides customer relationship management software and applications focused on sales, customer service, marketing automation, analytics, and application development
Q 1.2 What is a Salesforce Release?
A Salesforce Release is how Salesforce delivers new features and functionality to our customers. They occur three times per year (Spring, Summer, and Winter), and new features are often based on input from the Trailblazer Community via a prioritization process.
Q 1.3 Explain Salesforce Editions.
Salesforce offers bundles of features and services, each geared toward specific business needs. These bundles, called editions.
List of editions offered by Salesforce:
- Essentials
- Professional
- Enterprise
- Unlimited
- Developer
Q 1.4 What is an App in Salesforce?
An App is a collection of items that work together to serve a particular function. You can find available Apps in your Org in the App Launcher.
Q 1.5 What are Objects in Salesforce?
Salesforce objects are database tables that permit you to store the data specific to an organization. Salesforce supports several different types of objects such as:
- Standard objects
- Custom objects
- External objects
- Platform events
- BigObject
Q 1.6 What is a Report?
A report is a list of records that meet the criteria you define. It’s displayed in Salesforce in rows and columns, and can be filtered, grouped, or displayed in a graphical chart.
Report is stored in a folder. Folders can be public, hidden, or shared, and can be set to read-only or read/write. You control who has access to the contents of the folder based on roles, permissions, public groups, and license types. You can make a folder available to your entire organization, or make it private so that only the owner has access.
Q 1.7 What is a Dashboard?
A dashboard is a visual display of key metrics and trends for records in your org. For each dashboard component, there is a single underlying report.
Dashboards are stored in folders, which control who has access. If you have access to a folder, you can view its dashboards. However, to view the dashboard components, you need access to the underlying reports as well. You can also follow a dashboard in Chatter to get updates about the dashboard posted to your feed.
Q 1.8 What is a Report Type?
A Report Type determines which fields and records are available for use when creating a report. This is based on the relationships between a primary object and its related objects. For example, with the ‘Opportunities and Accounts’ report type, ‘Opportunity’ is the primary object and ‘Accounts’ is the related object.
Reports display only records that meet the criteria defined in the report type. Out of the box, Salesforce provides a set of predefined standard report types. You can also create custom report types.
Q 1.9 Explain different Report formats available in Salesforce.
Salesforce provides four report formats:
- Tabular Report: Default format, consist simply of an ordered set of fields in columns, with each matching record listed in a row.
- Summary Report: Allow users to group rows of data, view subtotals, and create charts.
- Matrix Report: Allow users to group records both by row and by column and provide the most detailed view of our data. Like summary reports, matrix reports can have graphs and be used in dashboards.
- Joined Report: Allow users to create different views of data from multiple report types. In a joined report, data is organized in blocks. Each block acts like a “sub-report,” with its own fields, columns, sorting, and filtering. You can add a chart to a joined report.
Q 1.10. What is Automation?
2. Salesforce Developer Interview Questions and Answers
Q 2.1 What is Object Relationship in Salesforce?
Object relationships are used to link objects in Salesforce. You can define different types of relationships by creating custom relationship fields on an object.
Salesforce Supports following types of relationships:
- Master-detail – master record controls certain behaviors of the detail record
- Many-to-many – allows each record of one object to be linked to multiple records from another object and vice versa
- Lookup – links two objects together similar to master-detail relationships, except they don’t support sharing or roll-up summary fields
- External lookup – links a child standard, custom, or external object to a parent external object
- Indirect lookup – links a child external object to a parent standard or custom object
- Hierarchical – available for only the user object. It lets users use a lookup field to associate one user with another that does not directly or indirectly refer to itself
Q 2.2 Explain different types of Orgs in Salesforce.
Various types of Orgs available in Salesforce are:
- Production org – An org that has live users accessing your data
- Developer org – An org created with a Developer Edition account
- Sandbox org – An org created on your production org that is a copy of your production org used for development and testing. Salesforce offers following types of Sandboxes
- Developer Sandbox – Can be refreshed once per day and provides 200 MB storage, only metadata is copied
- Developer Pro Sandbox – Can be refreshed once per day and provides 1 GB storage, only metadata is copied
- Partial Copy Sandbox – Can be refreshed once every 5 days and provides 5 GB storage, metadata and sample data is copied
- Full Copy Sandbox – Can be refreshed once every 29 days and provides storage as your production org, metadata and all data is copied
Q 2.3. What is an Apex Class?
An Apex class is a template or blueprint from which Apex objects are created. Classes consist of other classes, user-defined methods, variables, exception types, and static initialization code.
// Apex Class Syntax
public class MyClassName {
// variables
// methods
}
Q 2.4 What is an sObject?
Every record in Salesforce is natively represented as an sObject in Apex. Standard and custom object records in Salesforce map to their sObject types in Apex. The names of sObjects correspond to the API names of the corresponding standard or custom objects. Similarly, the names of sObject fields correspond to the API names of the corresponding fields.
// sObject creation syntax
Account myAccount = new Account(Name = 'Forcepective');
Account myAccount = new Account();
myAccount.Name = 'Forcepective';
Q 2.5 What are DML Statements?
Data Manipulation Language (DML) statements are used to create and modify records in Salesforce. Each DML statement accepts either a single sObject or a list (or array) of sObjects. Operating on a list of sObjects is a more efficient and recommended way for processing records. Following DML statements are available in Apex:
- insert – creates one or more sObject records
- update – updates one or more sObject records using ID
- upsert – creates new records and updates sObject records within a single statement, using a specified field to determine the presence of existing objects, or the ID field if no field is specified
- delete – delete one or more sObject records using ID
- undelete – restores one or more existing sObject records
- merge – merges up to three records of the same sObject type into one of the records, deleting the others, and re-parenting any related records.
Q 2.6 What is Visualforce?
Visualforce is a framework that allows developers to build sophisticated, custom user interfaces that can be hosted natively on the Lightning platform. The Visualforce framework includes a tag-based markup language, similar to HTML, and a set of server-side “standard controllers” that make basic database operations, such as queries and saves, very simple to perform.
Developers can use Visualforce to create a Visualforce page definition. A page definition consists of two primary elements:
- Visualforce markup – markup consists of Visualforce tags, HTML, JavaScript, or any other Web-enabled code embedded within a single <apex:page> tag. The markup defines the user interface components that should be included on the page, and the way they should appear.
- A Visualforce controller – a set of instructions that specify what happens when a user interacts with the components specified in associated Visualforce markup, such as when a user clicks a button or link. Controllers also provide access to the data that should be displayed in a page, and can modify component behavior.
Q 2.7 Where can Visualforce pages be used?
Visualforce pages can be used to:
- Override standard buttons, such as the New button for accounts, or the Edit button for contacts
- Override tab overview pages, such as the Accounts tab home page
- Define custom tabs
- Embed components in detail page layouts
- Create dashboard components or custom help pages
- Customize, extend, or integrate the sidebars in the Salesforce console (custom console components)
- Add navigation menu items and actions in the Salesforce mobile app
Q 2.8. What is SAML?
SAML (Security Assertion Markup Language) is an open-standard XML based authentication protocol. Salesforce uses SAML for single sign-on (SSO) into a Salesforce org from a third-party identity provider. You can also use SAML to automatically create user accounts with Just-in-Time (JIT) user provisioning.
Salesforce Interview Questions and Answers
3. Salesforce Lightning Interview Questions and Answers
Q 3.1 What is Salesforce Lightning?
Lightning includes the Lightning Component Framework and a collection of tools for developers such as:
- Lightning components – Develop reusable components
- Lightning App Builder – Build Lightning Pages with Click not Code
- Experience Builder – Build Communities with Click not Code
Q 3.2 What is Lightning Component Framework?
The Lightning Component framework is a UI framework for developing web apps for mobile and desktop devices. It’s a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform apps. It uses JavaScript on the client side and Apex on the server side. Salesforce supports two types of Lightning Component Frameworks:
- Aura Components
- Lightning Web Components
Q3.3 What are Lightning Web Components (LWC)?
Lightning Web Components (LWC) is a new programming model for building Lightning components. It leverages the latest web standards, can coexist and interoperate with the original Aura programming model, and delivers better performance as compared to Aura Components. LWC leverages custom elements, templates, shadow DOM, decorators, modules, and other new language constructs available in ECMAScript 7 and beyond. Lightning Web Components provides a layer of specialized Salesforce services on top of the core stack, including:
- The Base Lightning Components, a set of over 70 UI components all built as custom elements.
- The Lightning Data Service which provides declarative access to Salesforce data and metadata, data caching, and data synchronization.
- The User Interface API, the underlying service that makes Base Lightning Components and the Lightning Data Service metadata aware, leading to substantial productivity gains.
Q 3.4 What are the key component of a LWC?
LWC consists of a JavaScript file, an HTML file, and optionally a CSS file. A component needs a folder and its files with the same name.
HTML – provides the structure for your component. (Filename: firstApp.html)
<template>
<input value={welcomeMessage}></input>
</template>
JavaScript – defines the core business logic and event handling. (Filename: firstApp.js)
import { LightningElement } from 'lwc'; export default class firstApp extends LightningElement { welcomeMessage = 'Welcome to Forcepective!'; }
CSS – provides the look, feel, and animation for your component. (Filename: firstApp.css)
input {
color: orange;
}
Q 3.5 What are Lifecycle Hooks in LWC?
Lightning Web Components provides methods that allow you to “hook” your code up to critical events in a component’s lifecycle. These events include when a component is:
- Created
- Added to the DOM
- Rendered in the browser
- Encountering errors
- Removed from the DOM
You can respond to any of these lifecycle events using callback methods. For example, the connectedCallback()
is invoked when a component is inserted into the DOM. The disconnectedCallback()
is invoked when a component is removed from the DOM.
4. Salesforce Sales Cloud Interview Questions and Answers
Q 4.1 What is Salesforce Sales Cloud?
Sales Cloud is the sales automation software available as part of Salesforce CRM. Some of the key features of Sales Cloud are:
- Lead Management – Track your leads from click to close, while continually optimising your campaigns across every channel.
- Account and Contact Management – Have a complete view of your customers, including activity history, key contacts, customer communications, and internal account discussions.
- Opportunity Management – Get a complete view of your team’s deals, see stage, products, competition, quotes, and more.
- Pipeline and Forecast Management – Keep a real-time view into the health of your business. Stay up to speed on your team’s pipeline. Improve forecast accuracy.
Q 4.2 What are Leads?
Leads are people who are interested in your product and service. Leads are your prospects who’ve expressed interest in your product, but you haven’t yet qualified to buy.
Q 4.3 What are Opportunities?
Opportunities are deals in progress. Opportunity records track details about deals, including which accounts they’re for, who the players are, and the amount of potential sales.
Q 4.4 What are Products?
Products are a base catalog of all the items and services you sell and their standard prices.
Q 4.5 What are Price Books?
Price books track the prices of products and services that your company offers to customers. Price Books let you create a custom collection of products with associated list prices for specific uses.
- The Standard Price Book is the master list of all your products and their default standard prices. Salesforce creates the standard price book when you start creating product records. It includes all your products and their standard prices regardless of any custom price books that include those products.
- A Custom Price Book is a separate list of products with custom prices, called list prices. Custom price books are ideal for offering products at different prices to different market segments, regions, or other subsets of your customers. Create a separate price book for each set of customers that you want to address.
A price book entry is a product with its price as listed in a price book. Each price book entry specifies a currency for the price.
- Standard Price Book Entries are the default (standard) prices for the products and services in the standard price book. When you create a product record, Salesforce creates a standard price book entry. You can mark the standard price book entry as active or inactive, depending, for example, on whether you intend to start selling the product right away.
- Custom Price Book entries are the custom (list) prices for the products and services in your custom price books. Custom price book entries can be created only for products with active standard price book entries.
5. Salesforce Service Cloud Interview Questions and Answers
Q 5.1. What is Service Cloud?
Service Cloud is the customer service and support application from Salesforce. Service cloud can help you deliver personalized support to your customers by email (email to case), Phone (CTI Integration), Social Media (Social Service), Chat (Live Chat), Experience Cloud Sites and more.
Q 5.2 What is a Case?
A case is a question, feedback, or issue reported by your customer. Cases can be assigned to queues to be taken up for resolution by Support Agents.
Q 5.3 What is a Case Team?
A case team is a group of people that work together to solve cases. For example, a case team to fix internet connection can include support agents, field technicians.
Case Team members are assigned Case Team Roles which determines team members level of access to cases.
Q 5.4 What is the Service Console?
Service Console is a Service Cloud feature used by Service Agents to get a personalized view of each customer and their case.
Some of the key features of Service Console are:
- Split View – You can see a list of cases alongside your workspace to quickly work through incoming customer issues.
- Related record and related list – You can see information related to a customer.
- Highlights panel – You can see key information about the case.
- Case Feed – You can see case history at a glance.
- Related – You can see records related to the case.
- Utility Bar – You can make productivity tools easily available to Agents.
Q 5.5 What is Support Process?
Support Process is used to streamline case creation and resolution. Support process is used to assign Status values for cases for a particular record type. For Example, different departments in a company can use different Status values for Cases. In order to achieve this you will have to create two record types and two support processes with different Status values as required by the department.
6. Salesforce Industries (Vlocity) Interview Questions and Answers
Q 6.1 What is Vlocity?
Vlocity offers industry specific solutions built natively & additively on Salesforce Platform.
Vlocity offers industry specific solutions for Insurance, Healthcare, Communications, Media & Entertainment, Energy & Utilities and Government.
After being acquired by Salesforce, Vlocity is now part of Salesforce Industries.
Q 6.2 What is OmniStudio?
OmniStudio is a set of drag and drop configuration tools to quickly develop and deploy Industry applications.
OmniStudio Architecture consists of three layers:
- The Digital Experience Layer
- FlexCards: display contextual information and actions
- OmniScripts: guided path to complete a business process
- The Service Management Layer
- DataRaptors: services for retrieving, transforming, and updating data
- Integration Procedures: execute multiple actions in a single server call
- The Developer Experience Layer
- IDX Build Tool: Command-line tool to packages and migrates OmniStudio Datapacks
- IDX Workbench: Desktop application that enables developers to migrate Datapacks and Salesforce metadata
Q 6.3 What are FlexCards?
FlexCards summarize basic information at a glance, display detailed information on demand, and provide quick access to common tasks that are context-relevant. For example, in a call center scenario, when a call center agent interacts with a customer over the phone, the agent views the customer’s information and launches guided processes from the FlexCard during the call.
Key capabilities of Flex Cards:
- FlexCards summarize Contextual Information at a glance.
- FlexCards are the beginning and ending points for customer transactions.
- Design FlexCards to ensure they meet customer requirements/needs.
- FlexCards can be viewed on Any Device or Channel such as Adobe Experience Manager, or inside a custom web container, like Heroku.
- A FlexCard can display a combination of internal information from Salesforce and external information from a website or a third-party legacy system.
- You can Quickly Build FlexCards Using Drag-and-Drop Elements in FlexCard Designer.
- The FlexCard Designer includes a WYSIWYG editor that lets you control FlexCard layout and style without needing templates.
- FlexCards can be embedded in Other FlexCards or an LWC OmniScript.
- FlexCards can be used to display details on demand with Flyouts.
- FlexCard elements can also be displayed conditionally.
Q 6.4 What is an OmniScript?
An OmniScript gives customers a guided path for completing a business process and serves as a configurable way of creating a seamless customer experience.
For example, consider if a customer wants to:
- View and update their contact information, which is stored in Salesforce.
- View their service plan, which is stored in a legacy database.
- View their bill, which is stored in a billing system; choose to pay it; and select a specific way to pay it.
Q 6.5 What is a DataRaptor?
A DataRaptor is a mapping tool that enables you to read, transform, and write Salesforce data. There are four types of DataRaptor:
- DataRaptor Extract – Gets data from one or more Salesforce Object
- DataRaptor Load – Saves data to one or more Salesforce Objects
- DataRaptor Transform – Manipulates any data that comes from inside or outside Salesforce
- DataRaptor Turbo Extract – Gets data from a single Salesforce Object
7. Salesforce Integration Interview Questions and Answers
Q 7.1 What is an Integration Pattern?
Integration Pattern is a standardized method for Integrating systems. It identifies how systems (including their components and services) interact as part of an Integration Solution Design. Integration Pattern describes a proven way to evaluate and solve Integration problems without reinventing the wheel.
Four types of Integration Patterns:
- Point to Point Integration – Multiple systems connected directly with each other.
- Hub & Spoke Integration – Systems are integrated to a central Hub.
- API Gateway Integration – Serves as a single point of entry for specific apps that want to access a given API.
- Event-Driven Architecture Integration – Publish and Subscribe model supports asynschronous integration.
Q 7.2 What is Change Data Capture?
Change Data Capture is a streaming product that enables you to integrate your Salesforce data with external systems. With Change Data Capture, you can receive changes of Salesforce records in real time and synchronize corresponding records in an external data store. Change Data Capture publishes events for changes in Salesforce records corresponding to create, update, delete, and undelete operations.
Q 7.3 What is Analytics API?
The Analytics REST API is based on the Chatter REST API. It is used to programmatically access Analytics features such as datasets, dashboards and lenses.
Q 7.4 What is Metadata API?
Metadata API is used to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts in Salesforce Org. Applications built using Metadata API can be used to move Metadata between orgs or local repositories. You can access Metadata PI using Ant Migration Tool or Salesforce Extensions for Visual Studio Code.
Q 7.5 What is the Tooling API?
Tooling API is used to build custom development tools or apps for Salesforce Platform. It allows you to retrieve smaller pieces of Metadata making it a good fit for developing interactive applications.
8. Salesforce CPQ Interview Questions and Answers
Q 8.1 What is CPQ?
CPQ stands for Configure, Price, Quote.
- Configure – configure Product Bundles, Eligibility, Availability
- Price – perform automatic Price Calculations, apply discounts, perform approvals
- Quote – manage Quote Lifecycle, create proposal documents, convert Quote to Orders
Q 8.2 What are Product Rules in Salesforce CPQ?
Product Rules in Salesforce CPQ ensures that the correct Product is displayed to the user. There are four kinds of Product Rules:
- Validation Rules – Confirms that a quote’s product combinations or quote line field values match predetermined conditions
- Selection Rules – Automatically adds, removes, hides, enables, or disables options in a bundle
- Filter Rules – Prefilters the products available to add to a bundle
- Alert Rules – Guides and informs through messages during configuration or pricing
Q 8.3 What are Price Rules in Salesforce CPQ?
Price rules in Salesforce CPQ automate price calculations and update the quote line fields. They contain price conditions to calculate accurate price during the Quoting process.
Price rules inject a static value, field value, or summary variable into a quote or quote line field. For example, create a price rule so that the quantity of maintenance kits in your quote is always twice the quantity of that quote’s printers. When a customer changes the printer quantity and saves the quote, Salesforce CPQ activates the price rule and updates the maintenance kit quantity.
Price rules can target the configurator or the quote line editor’s calculator. If you target the calculator, you can set the Calculator Evaluation Event field to apply the price rule:
- Before calculation
- After calculation
- During calculation
- Or during any combination of the above three
Q 8.4 What are Product Bundles in Salesforce CPQ?
Product bundles are products with optional features or components that you want to include on a single quote line.
A bundle product contains several records.
- A bundle parent: The parent product is the bundle itself.
- Options: These products in the bundle contribute to the bundle price. You can consider these children of the bundle parent. An option doesn’t contribute to the bundle price if you select its Bundled checkbox.
- Features: A feature is a group of options. You can use the Min Options and Max Options fields to define selection restrictions for objects in the same feature, such as “pick one or more” or “pick 3 of 5.”
- Option constraints: Use constraints to control how users select options together.
- Configuration attribute: A field and picklist shown above or below the list of product options. This field targets all options containing the same field and applies its value to all those fields.
First, choose a product to represent your parent, and at least one product to represent a bundle option. After you create your options, features, and constraints, associate them to the parent via related lists on the parent product record.
Q 8.5 What are Summary Variables?
Summary Variables (Sum, Average, Min, Max, Count) summarize number field information about products into a single object called a summary variable. You can reference a summary variable in price conditions, price actions, product rule error conditions, quote term conditions, and other summary variables.
Summary variables can be referenced in:
- Price Rules – Use a summary variable as a tested variable or filter variable in a price condition.Use a summary variable as a price action’s source variable to update quote and quote line fields.
- Product Rules – Use a summary variable as a tested variable or filter variable.
- Quote Terms – Use a summary variable as a tested variable.
- Summary Variable – Reference a summary variable in another summary variable’s Variable Element field. You can take the results of your aggregate function and perform another operation on them using the composite operator and the variable element.
9. Salesforce Field Service Interview Questions and Answers
Q 9.1 What is Field Service Management?
Field Service Management (FSM) refers to the management of a company’s resources employed at or en route to the property of clients, rather than on company property. Examples include locating vehicles, managing worker activity, scheduling and dispatching work, ensuring driver safety, and integrating the management of such activities with inventory, billing, accounting and other back-office systems.
Q 9.2 What are the key Field Service Roles?
In Field service, there are generally four roles administrators, agents, dispatchers, and mobile workers, or people who make service calls.
Role | Description |
---|---|
Administrator | Sets up field service features according to their unique business needs. Set up includes installing the Field Service managed package and Field Service mobile app |
Agent | Takes customer service calls and requests field service appointments via work orders, which list the skills and parts that are needed |
Dispatcher | Assigns and manages the service appointments. The dispatcher console included in the managed package helps dispatchers schedule, optimize, and dispatch service appointments from one screen |
Mobile Worker or Technician | Manages their service appointments. Their tasks include closing work orders, tracking the parts they used, and providing service reports |
Q 9.3 What are the key elements of Salesforce Field Service?
The the key parts of Field Service are:
- Core Field Service – When you enable Field Service in your organization, admins and agents can:
- Set operating hours, skill sets, and standard appointment requirements unique to your organization
- Enable the Salesforce app to provide mobile access to your mobile workforce
- Track inventory and van stock so your mobile workforce has what they need when they’re at a customer site
- Report and analyze field service data
- Plan, perform, and track all your field service work, from installations to repairs and maintenance
- Field Service Managed Package – When the managed package is installed, dispatchers can:
- Optimize the schedule according to your organization’s scheduling policies
- Get a bird’s-eye view of appointment lists, scheduling actions, a resource availability chart, and an interactive map in the dispatcher console
- Integrate and maintain scheduling policies, global actions, sharing tools, and optimization rules with the administration app
- Field Service Mobile App – The Field Service mobile app is available for free on the App Store and Google Play. Mobile workers using the app can:
- View their appointment schedule
- Use Salesforce data to check on work orders, reach contacts, and verify addresses
- Create and edit records to log work and create follow-up appointments
- Use Chatter to collaborate with other mobile workers, managers, and dispatchers
- Track updates with push notifications
- View Knowledge articles to complete tricky tasks
- Track van stock and inventory consumed to complete jobs
Q 9.4 What are Service Territories?
Service territories typically represent geographical areas where your field service team works. Service territories are created from Guided Setup or from the Service Territories tab. Depending on how your business works, you may decide to create territories based on cities, counties, or other factors. If you plan to build out a hierarchy of service territories, create the highest-level territories first. Service territory hierarchies can contain up to 10,000 territories.
Q 9.5 What are Service Resources?
Service resources are individual users or groups of users (known as service crews) who can perform field service work. Skills are assigned to Service Resources to indicate the resource’s areas of expertise. Service Resources are assigned to Service Territories.
Service Territories which can be:
- Primary: (One territory) Where the resource works most often—for instance, near their home base
- Secondary: (One or more territories) Where they can be assigned to appointments if needed. Secondary territory membership dates can overlap
- Relocation: (One or more territories) Represents a temporary move
10. Other Salesforce Interview Questions and Answers
- Marketing Cloud
- Salesforce B2B Commerce Cloud (CloudCraze)
- Flow
- Experience Cloud
- Salesforce Architect
- Pardot
- Salesforce Testing
- Salesforce Industries (Vlocity) CPQ
- Salesforce Business Analyst
- Sharing & Visibility
- Salesforce Financial Services Cloud
Additional Resources
- Questions Asked in Every Interview (Leeds School of Business)
- Behavioral-Based Interview Questions (Leeds School of Business)
- Questions to Ask the Employer (Leeds School of Business)
This article will be updated soon, please come back for more Salesforce Interview Questions and Answers!